package cn.glc.daily.life.starter;

import cn.glc.daily.life.config.propertysource.ExtPropertySourceFactory;
import cn.simon.free.filter.annotation.EnableEmbedFilter;
import cn.simon.free.redis.mq.annotations.EnableRedisMessage;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.PropertySource;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 日常提醒启动类
 *
 * @author simon
 * @date 2019/05/26 09:59
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
@EnableRedisMessage
@EnableScheduling
@EnableEmbedFilter
@SpringBootApplication(scanBasePackages = {"cn.glc.daily.life", "cn.simon"})
@MapperScan("cn.glc.daily.life.infrastructure.dao")
@PropertySource(value = "classpath:business-ext-config.yml", factory = ExtPropertySourceFactory.class)
public class DailyLifeApplication {
    public static void main(String[] args) {
        SpringApplication.run(DailyLifeApplication.class, args);
    }
}
